package com.binge.spring.aop.exec;

import com.binge.spring.aop.service.AopServiceA;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.support.ClassPathXmlApplicationContext;

@Slf4j
public class CoreExec {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:aop.xml");
        AopServiceA beanTestService= (AopServiceA) applicationContext.getBean("aopServiceA");
        beanTestService.queryAll();


     /*   AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);

        BeanTestService beanTestService = (BeanTestService) applicationContext.getBean("myFactoryBean");
        beanTestService.test();
*/

    }
}
